%% MAIN APPLICATION
% TuanND
% 04/24
% About
% Part 1. Load image database
% Part 2. Run VG algorithm
% Part 3. Run DCT-based algorithm
% Part 4. Run edge-density algorithm
% Part 5. Run Mat algorithm
% Part 6. Showing result

%%
clc;
clear all;
close all;

%% Part 1. Load image database
imPath = 'imgs';
imFile = dir([imPath '\*.png']);
dbsize = length(imFile);
for i = 1:dbsize
    imName = [imPath '\' imFile(i).name];
    I{i} = imread(imName);
end

%%  Part 2. Run VG algorithm
mapoutPath = 'mapout';
for i = 1:dbsize
    im = I{i};
    vm_map_out(im, mapoutPath);
end
